<?php
/* @var $this SnsController */
/* @var $model VosCallBill */
?>

<?php
$this->breadcrumbs=[
	'通话记录管理'=>['index'],
	$model->id,
];

$this->menu=[
	['icon' => 'glyphicon glyphicon-home','label'=>'通话记录列表', 'url'=>['admin']],
	//['icon' => 'glyphicon glyphicon-plus-sign','label'=>'Create VosCallBill', 'url'=>['create']],
	//['icon' => 'glyphicon glyphicon-edit','label'=>'Update VosCallBill', 'url'=>['update', 'id'=>$model->id]],
	//['icon' => 'glyphicon glyphicon-minus-sign','label'=>'Delete VosCallBill', 'url'=>'#', 'linkOptions'=>['submit'=>['delete','id'=>$model->id],'confirm'=>'Are you sure you want to delete this item?']],
];

$this->pageTitle='';
$this->pageSubTitle='';


?>

<div class="row">
	<div class="col-lg-12">
		<div class="panel panel-success">
			<div class="panel-heading">
				<h4>详情</h4>
			</div>
			<div class="panel-body">
				<?php $this->widget('zii.widgets.CDetailView',[
				'htmlOptions' => [
				'class' => 'table table-striped table-condensed table-hover',
				],
				'data'=>$model,
				'attributes'=>[
						'id',
		'callerE164',
		'callerAccessE164',
		'callerProductId',
		'callerToGatewayE164',
		'callerGateway',
		'callerip',
		'calleeE164',
		'calleeAccessE164',
		'calleeProductId',
		'calleeToGatewayE164',
		'calleeGateway',
		'calleeip',
		'start',
		'stop',
		'holdTime',
		'feeTime',
		'fee',
		'feePrefix',
		'suiteFee',
		'suiteFeeTime',
		'agentFee',
		'agentFeeTime',
		'agentFeePrefix',
		'agentSuiteFee',
		'agentSuiteFeeTime',
		array('name'=>'callLevel','value'=>$model->callLevel==1?"网内通话":$model->callLevel==2?"本地市话":$model->callLevel==4?"国内长途":"国际长途"),
		'account',
		'accountName',
		'agentAccount',
		'agentName',
		array('name'=>'endDirection','value'=>$model->endDirection==0?"主叫":$model->endDirection==1?"被叫":"服务器"),
		'endReason',
		array('name'=>'billingType','value'=>$model->billingType==0?"主叫计费":$model->billingType==1?"被叫计费":"外部计费"),
		array('name'=>'billingMode','value'=>$model->billingMode==0?"根据话机所在账户计费":$model->billingMode==1?"根据对接网关所在账户计 费":$model->billingMode==2?"根据绑定号码所在账户计 费":"根据在用电话卡所在账户 计费"),
				],
				]); ?>
			</div> <!-- end panel-body -->
		</div>
	</div>
</div> <!-- end row -->